import { DatePicker, Space } from 'antd';
import moment from 'moment';
import React from 'react';
const { RangePicker } = DatePicker;
const dateFormat = 'YYYY/MM/DD';
const Data = () => (
  <Space direction="vertical" size={12}>
    <RangePicker
      defaultValue={[moment('2020/01/01', dateFormat), moment('2022/01/01', dateFormat)]}
      format={dateFormat}
    />
  </Space>
);
export default Data;